GBML manual / Text

text_effect_stop

Words are drawn plainly again from here. Use it to keep one line plain after a line with a text effect. It does nothing when no text effect is chosen.

Works differently on Game Boy - Text effects play in a plainer form: Typewriter, Drop in, Pop and Jitter in show the letters on time; Wave, Shake and Sway move a text sideways (sprite text also up and down); Bounce hops sprite text; a Tint does nothing; looks that turn or grow letters leave the text plain.

Works differently on Game Boy Color - Text effects play in a plainer form: letters appear one by one, colors change as made, text shakes or ripples sideways; letters never turn or grow.

Works differently on Sega Genesis - The Sega Genesis plays a text effect its own way. This version plays the Tint track (the words' color mixed toward the effect's color, with the effect's timing) and the Wave and the Shake of the Letters track (each letter its own sprite). It does not play the other Letters looks yet and cannot turn, resize, block or fade words, so the other Letters looks and the Stretch, Blocks, See-through, Scale, Rotate and Flip tracks do not show (the build says which effect has one); use Make a sprite from this effect for those.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

text_effect_stop()

Returns

Nothing.

Description

Words are drawn plainly again from here. Use it to keep one line plain after a line that has a text effect. It does nothing when no text effect is chosen.

The effect's clock keeps going if you call text_effect_start for it again in the same frame, so a Draw event that draws one line with an effect and the next without calls start and stop once each, every frame.

Example

text_effect_start(te_doc_flash);
draw_text(8, 8, "FLASHING");
text_effect_stop();
draw_text(8, 24, "steady");

The first line flashes; the second does not.

On the GBA

The effect’s clock keeps going if you call text_effect_start for it again in the same frame (a Draw event that draws one line with an effect and the next without calls start and stop once each, every frame).

See also: Overlay effects - screen effects you make yourselftext_effect_starttext_effect_active